package com.example.mannortycoon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mannortycoon.entity.UserBuySeedRecordEntity;
import com.example.mannortycoon.entity.UserSeedEntity;
import com.example.mannortycoon.uitl.PageUtils;
import com.example.mannortycoon.uitl.R;
import com.example.mannortycoon.vo.UserSeedVo;

import java.util.List;
import java.util.Map;

public interface UserSeedService extends IService<UserSeedEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R save(UserBuySeedRecordEntity userBuySeedRecordEntity);

    List<UserSeedVo> getUserSeedList(Long userId);

    void saveUserSeedList(Long userId,List<UserSeedEntity> userSeedList);

    R unlockSeed(Long userId, Long seedId);

    R sellSeed(Long userId, Long seedId, Integer number);

    boolean has(Long userId, Long seedId);
}

